//
//  selectTagButton.m
//  APP_login
//
//  Created by edz on 7/13/21.
//  Copyright © 2021 baicai. All rights reserved.
//

#import "SelectTagButton.h"
#import "TagModel.h"

@interface SelectTagButton()



@end

@implementation SelectTagButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        self.backgroundColor = [UIColor colorWithRed:60/255.0f green:141/255.0f blue:251/255.0f alpha:1.0f];
        [self.layer setMasksToBounds:YES];
        [self.layer setCornerRadius:5.0];
    }
    return self;
}

- (void)setModel:(TagModel *)model{
    [self setTitle:model.tagTittle forState:UIControlStateNormal];
}
@end
